<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <!-- Vue容器 -->
  <div id="app">
    我是msg1：{{ str1 }}，我是msg2：{{ str2 }}
    <p>{{ str1 }}</p>
    <p>{{ str2 }}</p>
    <p v-text="str1">1111</p>
    <p v-text="str2">1111</p>
    <input v-model="str2">
  </div>
  <script src="./js/watcher.js"></script>
  <script src="./js/dep.js"></script>
  <script src="./js/compiler.js"></script>
  <script src="./js/onserver.js"></script>
  <script src="./js/Vue.js"></script>
  <script>
    // 创建实例
    const vm = new Vue({
      // el可以使用dom节点或者字符串设置
      // el: document.querySelector('#app'),
      el: '#app',
      // data数据
      data: {
        str1: '内容1',
        str2: '内容2',
        obj: {
          name: 'zs',
          age: 18,
          s: {
            a: 'a',
            b: 'b'
          }
        }
      }
    })
  </script>
</body>
</html>